package array01;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class Test001 {
    public static void main(String[] args) {
        List list = new ArrayList();
        list.add(new Date());
        list.add("aaa");

        list.add(12345);
        list.add(new Dog());

        List list2 = new ArrayList();
        list2.add("bbb");
        list2.add("ccc");

        list.add(list2);
        System.out.println(list.get(0));

        Object objectZeroObject = list.get(0);
        System.out.println(objectZeroObject);

        String stringZeroString = (String) list.get(0);
        System.out.println(stringZeroString);

    }
}

class Dog {

}